﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace GtsServer.Content.Service
{
    [ServiceContract]
    interface IService
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="contentByte"></param>
        /// <param name="fileName"></param>
        /// <param name="oldFileName">旧图片名称（需要删除的）</param>
        /// <returns></returns>
        [OperationContract]
        bool SaveContent(byte[] contentByte, string fileName, string oldFileName);

        [OperationContract]
        bool DeleteByFileName(string oldFileName);
    }
}
